<template>
  <el-dialog
    title="区域详情"
    :visible="outerVis"
    width="60%"
    @close="handleClose"
  >
    <el-form label-width="120px">
      <el-form-item label="区域名称：">
        <span>{{ changelist.name }}</span>
      </el-form-item>
      <el-form-item label="包含点位：">
        <el-table
          style="width: 80%"
          :data="potionAdd"
        >
          <el-table-column
            type="index"
            label="序号"
            width="60"
          />
          <el-table-column
            prop="name"
            label="点位名称"
            width="180"
          />
          <el-table-column
            prop="vmCount"
            label="设备数量"
          />
        </el-table>
      </el-form-item>
    </el-form>
    <span slot="footer" class="dialog-footer">
      <el-button @click="handleClose">取 消</el-button>
    </span>
  </el-dialog>
</template>

<script>
export default {
  props: {
    outerVis: {
      type: Boolean,
      default: false
    },
    changelist: {
      type: Object,
      default: () => ({})
    }
  },
  data() {
    return {
      potionAdd: [
        {
          name: '八达岭奥特莱斯',
          vmCount: '2' }
      ]
    }
  },
  computed: {
    chekAll() {
      return this.changelist
    }
  },
  methods: {
    handleClose() {
      this.$emit('update:outer-vis', false)
    }
  }
}
</script>

<style>
</style>
